package Test;
import java.util.Scanner;

public class Test05 {

	public static void main(String[] args) {
		/*“员工信息系统”：要求输入一个企业员工的姓名、性别、工号、月基本工资、奖金、补贴后，计算个人所得税。
		系统输出员工姓名、性别、工号和月应发薪水和实发薪水（月应发薪水-个人所得税）。
		个人所得税计算方法：当收入<=3500时，免交个人所得税；当3500<收入<=5000时，
		个人所得税=（工资-3500）*0.05；当5000<收入<=7500时，
		个人所得税=1500*0.05+（工资-5000）*0.075；当7500<收入<=10000时，
		个人所得税=1500*0.05+2500*0.075+（工资-7500）*0.12；当10000<收入<=13000时，
		个人所得税=1500*0.05+2500*0.075+2500*0.12+（工资-10000）*0.18；当收入>13000时，
		个人所得税=工资*0.2。*/
		
		Scanner s = new Scanner(System.in);
        System.out.println("请输入工资");
        double salary = s.nextDouble();
        double tax = 0;
        if (salary <= 3500){
            System.out.println("您不用纳税");
        }else if (salary >3500 && salary <=5000){
            tax = (salary-3500)*0.05;
        }else if (salary >5000 && salary <=7500){
            tax = 1500+0.05+(salary -5000)*0.075;
        }else if (salary >7500 && salary <=10000){
            tax = 1500*0.05+2500*0.075+(salary-7500)*0.12;
        }else if (salary >10000 && salary <=13000){
            tax = 1500*0.05+2500*0.075+2500*0.12+(salary-10000)*0.18;
        }else {
            tax = salary*0.2;
        }
        System.out.println("实发薪水为：" +(salary - tax));


	}

}
